<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>车辆维护信息</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../../../layui-v2.6.8/layui/css/layui.css">
  <script type  ="text/javascript" src="../../../layui-v2.6.8/layui/layui.js"></script>
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<!--<blockquote class="layui-elem-quote layui-text">-->
<!--    鉴于小伙伴的普遍反馈，先温馨提醒两个常见“问题”：1. <a href="/doc/base/faq.html#form" target="_blank">为什么select/checkbox/radio没显示？</a> 2. <a href="/doc/modules/form.html#render" target="_blank">动态添加的表单元素如何更新？</a>-->
<!--</blockquote>-->

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>车辆维护信息</legend>
</fieldset>
<form class="layui-form" action="">
  <div class="layui-form-item">
    <div class="layui-inline">
    </div>
  </div>

  <table class="layui-hide" id="maintenance" lay-filter="operation"></table>
</form>
<script src="../../../layui-v2.6.8/layui/layui.js"></script>
<script type="text/javascript">
  var table = layui.table;

  layui.use(['table'],function () {
    table.render({
      elem: '#maintenance',
      url: 'http://localhost:8080/allMain',
      cols: [[
        {type: 'checkbox', fixed: 'left'}
        , {field: 'mid', title: '车辆编号', fixed: 'left', sort: true}
        , {field: 'maintain', title: '保养费用'}
        , {field: 'repair', title: '修理费用'}
        , {field: 'eidm', title: '操作人员'}
        , {field: 'mtime', title: '维护时间'}
        , {field: 'mstatus', title: '维护状态'}
        , {field: 'maddress', title: '维护地点'}
        , {field: 'mcost', title: '维护费用'}
      ]],

    });
  })

</script>
<div class="layui-form-item">
  <div class="layui-input-block">
    <button class="layui-btn" onclick="location.href='addMain.html'" >添加</button>
    <button class="layui-btn" onclick="location.href='updateMain.html'" >修改</button>
  </div>
</div>

